Skip to content

test: add weekly date index test and extract _check_value() helper - #219

Merged
ChrisMarsden833 merged 3 commits into
nodatesfrom
test/weekly-and-conftest
Jul 26, 2026
Merged

test: add weekly date index test and extract _check_value() helper#219
ChrisMarsden833 merged 3 commits into
nodatesfrom
test/weekly-and-conftest

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

This PR adds test coverage and improves test infrastructure:

  • Add test_weekly_date_index with weekly-spaced dates starting 2026-01-01
  • Extract _check_value() helper in conftest.py to deduplicate start/end comparison logic
  • Update conftest.py docstring to mention numeric types (int, float)
  • Remove unused import math from conftest.py

All tests pass after these changes.

- Add test_weekly_date_index with weekly-spaced dates starting 2026-01-01
- Extract _check_value() helper in conftest.py to deduplicate start/end comparison logic
- Update conftest.py docstring to mention numeric types (int, float)
- Remove unused import math from conftest.py
@github-actions
github-actions Bot requested a review from RussellSB as a code owner July 9, 2026 06:28
@github-actions
github-actions Bot requested review from ChrisMarsden833 and removed request for RussellSB July 9, 2026 06:42
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ChrisMarsden833

Copy link
Copy Markdown
Collaborator

/oc can you resolve conflicts?

@opencode-agent

Copy link
Copy Markdown
Contributor

Conflict resolved. The issue was that nodates had inlined float comparison logic directly in assert_segments_match, while this PR extracted it into _check_value(). Kept the _check_value helper from HEAD — it's the cleaner version. All 77 core tests + 4 non-date tests pass.

New%20session%20-%202026-07-25T20%3A18%3A03.807Z
opencode session  |  github run

@ChrisMarsden833

Copy link
Copy Markdown
Collaborator

/oc Tests do now pass, good job, but there are several warnings generated, which all seem to be derivative of DeprecationWarning: 'is_abrupt_padded' in method_params is deprecated. Can you create a new branch and PR into nodates to resolve this?

@ChrisMarsden833
ChrisMarsden833 merged commit 5bbf75a into nodates Jul 26, 2026
4 checks passed
@ChrisMarsden833
ChrisMarsden833 deleted the test/weekly-and-conftest branch July 26, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants